package com.lagou.pojo;

import lombok.Data;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 * @Authther: mrwu
 * @date:2021/3/21-03
 * @Description:com.lagou.pojo
 */
@Data//lombok注解
public class Handler {
    private Object controller;
    private Method method;
    private String url;
    private HashMap<String,Integer> paramIndexMappings;
    private List<String> filters = new ArrayList<>();//存放过滤器对应Mysercrity的值

    public Handler() {
    }

    public Handler(Object controller, Method method, String url, HashMap<String, Integer> paramIndexMappings) {
        this.controller = controller;
        this.method = method;
        this.url = url;
        this.paramIndexMappings = paramIndexMappings;
    }

}
